function T = dynamic_g1_tt(T, y, x, params, steady_state, it_)
% function T = dynamic_g1_tt(T, y, x, params, steady_state, it_)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T             [#temp variables by 1]     double  vector of temporary terms to be filled by function
%   y             [#dynamic variables by 1]  double  vector of endogenous variables in the order stored
%                                                    in M_.lead_lag_incidence; see the Manual
%   x             [nperiods by M_.exo_nbr]   double  matrix of exogenous variables (in declaration order)
%                                                    for all simulation periods
%   steady_state  [M_.endo_nbr by 1]         double  vector of steady state values
%   params        [M_.param_nbr by 1]        double  vector of parameter values in declaration order
%   it_           scalar                     double  time period for exogenous variables for which
%                                                    to evaluate the model
%
% Output:
%   T           [#temp variables by 1]       double  vector of temporary terms
%

assert(length(T) >= 99);

T = model_file.dynamic_resid_tt(T, y, x, params, steady_state, it_);

T(44) = exp(y(54))/y(1);
T(45) = getPowerDeriv(T(7),T(8),1);
T(46) = getPowerDeriv(y(120)*exp(y(127)),1-params(3),1);
T(47) = (-(y(23)*exp(y(54))))/(y(1)*y(1));
T(48) = 1/exp(y(123));
T(49) = 1/params(46);
T(50) = (-(params(6)-y(34)))/(y(29)*y(29));
T(51) = getPowerDeriv(T(12),T(3),1);
T(52) = T(39)*getPowerDeriv(y(29),T(40),1);
T(53) = getPowerDeriv(T(42),T(43),1);
T(54) = 1/y(50);
T(55) = getPowerDeriv(T(34),T(32),1);
T(56) = 1/y(7);
T(57) = getPowerDeriv(T(18),T(16),1);
T(58) = getPowerDeriv(T(18),T(23),1);
T(59) = getPowerDeriv(y(7),params(12),1);
T(60) = (-y(32))/(y(7)*y(7));
T(61) = (-((-(y(32)*y(63)))/(y(7)*y(7))));
T(62) = y(45)*T(61);
T(63) = (-(y(28)*params(12)*(1-1/params(11))));
T(64) = T(1)/y(29);
T(65) = getPowerDeriv(y(34),1-params(12),1);
T(66) = T(41)*(-(getPowerDeriv(params(6)-y(34),T(40),1)));
T(67) = T(26)*exp(y(37)-params(44))*2*(exp(y(37)-params(44))-1);
T(68) = exp(y(37)-params(44))*params(14)*(exp(y(37)-params(44))-1)+exp(y(37)-params(44))*params(14)*exp(y(37)-params(44));
T(69) = exp(y(37)-params(44))*(exp(y(37)-params(44))-1)*(-params(14))+exp(y(37)-params(44))*exp(y(37)-params(44))*(-params(14));
T(70) = (-(exp(y(37))*(1+y(40))/(1+y(10))));
T(71) = exp(y(123))*exp(y(123));
T(72) = (-(y(121)*exp(y(123))))/T(71);
T(73) = exp(y(71))*y(121)*(-exp(y(126)-y(123)));
T(74) = (-((-(exp(y(37))*(1+y(40))))/((1+y(10))*(1+y(10)))));
T(75) = (-(exp(y(37))/(1+y(10))));
T(76) = T(1)/(y(11)*y(11));
T(77) = T(31)*(1-T(32))*exp(y(49)*(1-T(32)));
T(78) = getPowerDeriv(y(50),T(10),1);
T(79) = (-y(30))/(y(50)*y(50));
T(80) = T(5)*params(1)*T(3)*exp(T(3)*y(53));
T(81) = params(1)*exp(T(3)*y(53))*T(4)*T(5);
T(82) = exp(y(18))+params(20)*(-exp(y(18)));
T(83) = (-((1+exp(y(80)))*exp(y(74))/exp(y(21))));
T(84) = (-((1+exp(y(80)))*exp(y(76))/exp(y(21))));
T(85) = (-((1+exp(y(81)))*exp(y(77))/exp(y(22))));
T(86) = (-((1+exp(y(81)))*exp(y(78))/exp(y(22))));
T(87) = (-((1+exp(y(81)))*exp(y(79))/exp(y(22))));
T(88) = exp(y(21))*exp(y(21));
T(89) = (-((-((1+exp(y(80)))*exp(y(74))*exp(y(21))))/T(88)));
T(90) = (-((-(exp(y(21))*(1+exp(y(80)))*exp(y(76))))/T(88)));
T(91) = (-(exp(y(80))*exp(y(74))/exp(y(21))));
T(92) = (-(exp(y(80))*exp(y(76))/exp(y(21))));
T(93) = exp(y(22))*exp(y(22));
T(94) = (-((-((1+exp(y(81)))*exp(y(77))*exp(y(22))))/T(93)));
T(95) = (-((-(exp(y(22))*(1+exp(y(81)))*exp(y(79))))/T(93)));
T(96) = (-((-(exp(y(22))*(1+exp(y(81)))*exp(y(78))))/T(93)));
T(97) = (-(exp(y(81))*exp(y(77))/exp(y(22))));
T(98) = (-(exp(y(81))*exp(y(79))/exp(y(22))));
T(99) = (-(exp(y(81))*exp(y(78))/exp(y(22))));

end
